#[cfg(test)]
mod tests {
    use super::*;
    #[test]
    fn test_cast_funptr() {
        const BUFFER_SIZE: usize = 1;
        let mut buffer = [0; BUFFER_SIZE];
        entry(BUFFER_SIZE as u32, buffer.as_mut_ptr());
        assert_eq!(buffer[0], 10);
    }
}